package com.giantlizard.cloud.system.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.giantlizard.cloud.base.entity.PageQuery;
import com.giantlizard.cloud.system.dto.SysUserDto;
import com.giantlizard.cloud.system.entity.SysUser;
import com.giantlizard.cloud.system.vo.SysRoleVo;
import com.giantlizard.cloud.system.vo.SysUserVo;

import java.util.List;

/**
* @author kangdongwei
* @since 2024-07-28
*/

public interface SysUserService extends IService<SysUser> {
    SysUser transForToEntity(SysUserDto dto) throws Exception;

    SysUserDto transForToDto(SysUser entity) throws Exception;

    QueryWrapper<SysUser> createQueryWrapper(SysUserDto dto, PageQuery page) throws Exception;


    /**
     * 获取用户角色列表
     */
    List<SysRoleVo> getRoles(String userId);

    SysUserVo getUserInfo(String username);
}
